package com.wxgo.factory;

import com.wxgo.dao.FMenuDao;
import com.wxgo.dao.IndustryDao;
import com.wxgo.dao.ModuleDao;
import com.wxgo.dao.NewsDao;
import com.wxgo.dao.ProvinceDao;
import com.wxgo.dao.RoleDao;
import com.wxgo.dao.UserDao;

public class DaoFactory {

	// 角色Dao类
	private static RoleDao roleDao = null;

	public static RoleDao roleDao() {
		if (roleDao == null) {
			roleDao = new RoleDao();
		}
		return roleDao;
	}

	// 会员Dao类
	private static UserDao userDao = null;

	public static UserDao userDao() {
		if (userDao == null) {
			userDao = new UserDao();
		}
		return userDao;
	}

	// 最新动态Dao类
	private static IndustryDao industryDao = null;

	public static IndustryDao industryDao() {
		if (industryDao == null) {
			industryDao = new IndustryDao();
		}
		return industryDao;
	}

	// 图标Dao类
	private static ModuleDao moduleDao = null;

	public static ModuleDao moduleDao() {
		if (moduleDao == null) {
			moduleDao = new ModuleDao();
		}
		return moduleDao;
	}

	// 新闻Dao类
	private static NewsDao newsDao = null;

	public static NewsDao newsDao() {
		if (newsDao == null) {
			newsDao = new NewsDao();
		}
		return newsDao;
	}

	// 新闻Dao类
	private static FMenuDao fmenuDao = null;

	public static FMenuDao fmenuDao() {
		if (fmenuDao == null) {
			fmenuDao = new FMenuDao();
		}
		return fmenuDao;
	}

	private static ProvinceDao provinceDao = null;

	public static ProvinceDao provinceDao() {
		if (provinceDao == null) {
			provinceDao = new ProvinceDao();
		}
		return provinceDao;
	}
}
